'use strict';
module.exports = (sequelize, DataTypes) => {
  const CartItem = sequelize.define('CartItem', {
    quantity: DataTypes.INTEGER,
    current: DataTypes.STRING,
    price: DataTypes.INTEGER,
    
  }, {});
  CartItem.associate = function(models) {
    // associations can be defined here
    CartItem.hasOne(models.Product);
    CartItem.belongsTo(models.Cart);
  };
  return CartItem;
};